package service;

import java.util.List;

import entity.Course;
import entity.Elective;
import entity.User;
//放接口
public interface ISmsserivce {

	// 学生添加课程
	public int addCourse(Elective elective) throws Exception;	
	// 显示学生课程
	public List<Course> selectCourse(User user) throws Exception;	
	// 教师添加课程
	public int insertCourse(Course course) throws Exception;	
	// 教师显示所有课程
	public List<Course> selectAll() throws Exception;	
	// 根据编号查询
	public List<Course> selectCourseById(Course course) throws Exception;	
	// 按照编号进行删除课程
	public int deleteCourseById(Course course) throws Exception;	
	// 按照编号进行删除学生已选的课程
	public int deleteStudentCourseById(Elective elective) throws Exception;	
	// 登录验证
	public  int login(User user) throws Exception;	
	// 注册新用户
	public int addUser(User user);
}
